package io.renren.controller;

import io.renren.common.utils.R;
import io.renren.service.ProfessionTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/professionType")
public class ProfessionTypeController {

    @Autowired
    private ProfessionTypeService professionTypeService;

    @PostMapping("/getBenkeProfessionType")
    public R getBenkeProfessionType() {
        List l = professionTypeService.getBenkeProfessionType();
        return R.ok().put("benkeProfessionType",l);
    }

    @PostMapping("/getZhuankeProfessionType")
    public R getZhuankeProfessionType() {
        List l = professionTypeService.getZhuankeProfessionType();
        return R.ok().put("zhuankeProfessionType",l);
    }
}
